keep one's mouth shut
Be quiet; don't reveal confidential information. For example,
The teachers told us to keep our mouths shut during the entire presentation
, or
You can't tell Carol anything; she's incapable of keeping her mouth shut
. Also see
hold one's tongue